package com.example.javabasic.shejimoshi.mingling.demo1;
//具体命令
public class ConcreteCommand implements Command {
    private Receiver receiver;
    //初始化   可以定义 执行者, 扩展,  可以是多个执行者,自定义
    public ConcreteCommand() {
        this.receiver = new Receiver();
    }

    @Override
    public void execute() {
        receiver.action();
    }




}
